/**
 * 图片旋转 与 菜单的展开/收缩
 * @author wangsong
 * @mail  1720696548@qq.com
 * @date  2023/1/30 0030 9:49
 * @version 1.0.0
 */
function clickIconHandle(menuId) {
    $('#menu-' + menuId).toggle(300);
    // 图标180度旋转
    let transform = $('#menu-icon-' + menuId).css("transform");
    if (transform === "none") {
        $('#menu-icon-' + menuId).css("transform", "rotate(180deg)")
    } else {
        $('#menu-icon-' + menuId).css("transform", "none")
    }
}

/**
 * 监听菜单展示/收缩
 * @author wangsong
 * @param null
 * @date 2023/1/30 0030 15:13
 * @return
 * @version 1.0.0
 */
$(document).ready(function () {
    /**
     * 点击手机端菜单展开/搜索
     */
    $("#mobile-menu-animate").click(function () {
        let width = $(".mobile-menu").css("left") === '0px' ? {left: '-100%'} : {left: '0%'};
        $('.mobile-menu').animate(width, 150);
    });
});